home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / bsrc_250.zip / DATA.C < prev    next >
Text File  |  1991-09-15  |  36KB  |  766 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-91, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*            This module was originally written by Bob Hartman             */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*                            BinkleyTerm Data                              */
  17. /*                                                                          */
  18. /*                                                                          */
  19. /*    For complete  details  of the licensing restrictions, please refer    */
  20. /*    to the License  agreement,  which  is published in its entirety in    */
  21. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.250.    */
  22. /*                                                                          */
  23. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  24. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  25. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  26. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  27. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  28. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  29. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  30. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  31. /*                                                                          */
  32. /*                                                                          */
  33. /* You can contact Bit Bucket Software Co. at any one of the following      */
  34. /* addresses:                                                               */
  35. /*                                                                          */
  36. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  37. /* P.O. Box 460398                AlterNet 7:491/0                          */
  38. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  39. /*                                Internet f491.n343.z1.fidonet.org         */
  40. /*                                                                          */
  41. /* Please feel free to contact us at any time to share your comments about  */
  42. /* our software and/or licensing policies.                                  */
  43. /*                                                                          */
  44. /*--------------------------------------------------------------------------*/
  45.  
  46. /* Include this file before any other includes or defines! */
  47.  
  48. #include "includes.h"
  49.  
  50. unsigned int BINK_MAJVERSION = PRDCT_MAJOR;
  51. unsigned int BINK_MINVERSION = PRDCT_MINOR;
  52.  
  53. #ifdef PRIVATE_IDAHO
  54. #define ALPHA_DATE      ""
  55. #else
  56. #define ALPHA_DATE      ""
  57. #endif
  58.  
  59. #ifndef OS_2
  60. char *ANNOUNCE = PRDCT_PRTY " Version " PRDCT_VRSN ALPHA_DATE;
  61. char *xfer_id = PRD_SH_PRTY " " PRDCT_VRSN;
  62. #else
  63. char *ANNOUNCE = "BinkleyTerm-OS/2 Ver. " PRDCT_VRSN ALPHA_DATE;
  64. char *xfer_id = "BinkOS2 " PRDCT_VRSN;
  65. #endif
  66.  
  67. int SB_COLS_M_1 = 0;
  68.  
  69. int SB_ROW_HOLD = 6;
  70. int SB_ROW_STATUS = 0;
  71. int SB_ROWS_M_1 = 0;
  72. int SB_ROWS_M_2 = 0;
  73. int SB_ROWS_M_15 = 0;
  74.  
  75. #ifdef MILQ
  76. int SendPaths = 0;
  77. int UsePaths = 0;
  78. #endif
  79.  
  80. struct _key_fnc_hdr TrmnlKeyFncHdr;
  81. struct _key_fnc_hdr UnattendedKeyFncHdr;
  82.  
  83. char **msgtxt;
  84. struct _lang_hdr *LangHdr = NULL;
  85.  
  86. char *mtext [] = {
  87.                   "Jan", "Feb", "Mar", "Apr", "May", "Jun",
  88.                   "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
  89. };
  90.  
  91.  
  92. struct baud_str btypes[] = {
  93.                             {300,   BAUD_300},
  94.                             {1200,  BAUD_1200},
  95.                             {2400,  BAUD_2400},
  96.                             {4800,  BAUD_4800},
  97.                             {9600,  BAUD_9600},
  98.                             {19200, BAUD_19200},
  99.                             {0x9600, BAUD_38400}, /* 0x9600 = 38400 */
  100.                             {0,     0}
  101. };
  102.  
  103. struct baud_str max_baud =  {2400,  BAUD_2400}; /* Max baud value */
  104.  
  105. struct parse_list far DOS_commands[] = {
  106.                                     {7, "noforce"},
  107.                                     {4, "mail"},
  108.                                     {5, "share"},
  109.                                     {5, "dynam"},
  110.                                     {10, "unattended"},
  111.                                     {6, "config"},
  112.                                     {4, "poll"},
  113.                                     {0, 0}
  114. };
  115.  
  116.  
  117. int locate_x, locate_y, port_ptr, original_port;
  118.  
  119. int TaskNumber = 0;                              /* unique user-specified id   */
  120. int share = 0;                                   /* if 1, don't uninit FOSSIL  */
  121. int no_sharing = 0;                              /* if 1, no File Sharing calls*/
  122. int no_size = 0;
  123. int first_block;                                 /* 1 = first block/Matrix
  124.                                                   * packet */
  125.  
  126. int serial = -1;                                 /* -1 is unregistered         */
  127. int fstblklen = 0;                               /* Start Zmodem packet size   */
  128. int net_params = 0;
  129. int un_attended = 0;
  130. int command_line_un;
  131. int overwrite = 0;
  132. int redo_dynam = 0;
  133. int fullscreen = 1;
  134. int do_screen_blank = 0;
  135. int screen_blank = 0;
  136. int blank_on_key = 1;
  137. unsigned int blank_time = 6000;
  138. unsigned BBStimeout = 2000;
  139. int loglevel = 6;
  140. int debugging_log = 0;
  141. int gong_allowed = 0;
  142. int MAXport = 2;
  143. int pvtnet = -1;
  144. int poll_tries = 500;                            /* How many tries in a poll? */
  145.  
  146. int ring_tries = 4;                              /* How many rings before fail*/
  147.  
  148. int com_port = 0;                                /* Default com port = COM1   */
  149. int buftmo = 6000;                               /* 60 second timeout         */
  150. unsigned int comm_bits = BITS_8;                 /* Default data bits = 8     */
  151. unsigned int parity = NO_PARITY;                 /* Default parity = NONE     */
  152. unsigned int stop_bits = STOP_1;                 /* Default stop bits = 1     */
  153. unsigned int carrier_mask = 0x80;                /* Default carrier bit = 80H */
  154. unsigned int handshake_mask =  USE_XON | USE_CTS;/* Force CTS/RTS flow control*/
  155.  
  156. int baud;                                        /* Index to baud table       */
  157. struct baud_str cur_baud;                        /* Current baud rate         */
  158.  
  159. char *modem_init = NULL;                         /* Used to init modem        */
  160. char *term_init = NULL;                          /* Used to init modem in terminal mode */
  161. char *modem_busy = NULL;                         /* Take modem offhook        */
  162. char *predial = NULL;                            /* Pre-dial setup            */
  163. char *postdial = NULL;                           /* Post-dial cleanup         */
  164. char *normprefix;
  165. char *normsuffix;
  166. char *dial_setup;
  167. char *init_setup;
  168.  
  169. unsigned int matrix_mask = TAKE_REQ;             /* Netmail session abilities */
  170. char *system_name = NULL;                        /* Name of system to send    */
  171. char *sysop = NULL;                              /* Name of sysop for yoohoo  */
  172. char *netmail = NULL;